﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>@LeSoft.Application.Code.SystemInfo.CurrentSystemName</title>
    <!--框架必需start-->
    
    <script src="~/Content/scripts/jquery/jquery-1.10.2.min.js"></script>
    <script src="~/Content/scripts/plugins/cookie/jquery.cookie.js"></script>
    <link href="~/Content/styles/font-awesome.min.css" rel="stylesheet" />
   
    @System.Web.Optimization.Styles.Render("~/Content/styles/LeSoft-ui.css")
    @System.Web.Optimization.Scripts.Render("~/Content/scripts/utils/js")   
    <script src="~/Content/scripts/plugins/dialog/dialog.js"></script>
    <script src="~/Content/scripts/utils/LeSoft-clientdata.js"></script>
    <script src="~/Content/adminDefault/js/default.js"></script>
    <script src="~/Content/scripts/plugins/datepicker/WdatePicker.js"></script>
    <link href="~/Content/adminDefault/css/default.css" rel="stylesheet" />
   
    <!--框架必需end-->
    <!--即时通信start-->
    <link href="~/Content/styles/LeSoft-im.css" rel="stylesheet" />    
    <script src="~/Content/scripts/plugins/signalr/jquery.signalR-2.2.0.min.js"></script>  
    <script src="@LeSoft.Util.Config.GetValue("SignalRUrl")/signalr/hubs"></script>
    @*<script src="~/Content/scripts/utils/LeSoft-im.js"></script>*@   
    <!--即时通信end-->
    <script>
        var token = "@ViewBag.token";
        var contentPath = "";
        $(function () {
            initialPage();
            @*IMInit({
                url: "@LeSoft.Util.Config.GetValue("SignalRUrl")",
                userId: "@LeSoft.Application.Code.OperatorProvider.Provider.Current().UserId",
                userName: "@LeSoft.Application.Code.OperatorProvider.Provider.Current().UserName"
            });*@

           @* function iEsc() { return false; }
            function iRec() { return true; }
            function DisableKeys() {
                if (event.ctrlKey || event.shiftKey || event.altKey) {
                    window.event.returnValue = false;
                    iEsc();
                }
            }
            document.ondragstart = iEsc;
            document.onkeydown = DisableKeys;
            document.oncontextmenu = iEsc;
            if (typeof document.onselectstart != "undefined")
                document.onselectstart = iEsc;
            else {//qsyz.net
                document.onmousedown = iEsc;
                document.onmouseup = iRec;
            }
            function DisableRightClick(www_qsyz_net) {
                if (window.Event) {
                    if (www_qsyz_net.which == 2 || www_qsyz_net.which == 3)
                        iEsc();
                }
                else
                    if (event.button == 2 || event.button == 3) {
                        event.cancelBubble = true
                        event.returnValue = false;
                        iEsc();
                    }
            }*@
        });
        //初始化页面
        function initialPage() {
            $("#container").height($(window).height());
            $(window).resize(function (e) {
                $("#container").height($(window).height());
            });
            loadnav();
            $(window).load(function () {
                window.setTimeout(function () {
                    $('#ajax-loader').fadeOut();
                }, 300);
            });
            $("#Type").ComboBox({
                data: [{ "key": 1, "value": "资格申请单" }, { "key": 2, "value": "合同" }, { "key": 3, "value": "续租申请" }, { "key": 4, "value": "退租申请" }, { "key":5, "value": "会员信息" }, { "key": 6, "value": "选房记录" }, { "key": 7, "value": "看房申请" }],
                id: "key",
                text: "value",
                description: "==请选择==",
            });
        }

      
        //重置事件      
        function Reset() {
            $("#StartTime").val("");
            $("#EndTime").val("");
            $("#Type").val("");
            $("#Code").val("");
            $("#Name").val("");
            $("#IDCard").val("");
            $("#PStruct").val("");
        }
        function SearchEvent()
        {
            //查询事件 
            var Type= $("#Type").attr("data-value");
            var StartTime= $("#StartTime").val();
            var  EndTime= $("#EndTime").val();
            var  Code= $("#Code").val();
            var  Name=$("#Name").val();
            var IDCard = $("#IDCard").val();
            var PStruct = $("#PStruct").val();
           
            if (!!Type) {
                dialogOpen({
                    id: "SearchForm",
                    title: '快速查询（' + $("#Type").attr("data-text") + '）',
                    url: contentPath + '/Home/SearchForm?Type=' + Type + '&StartTime=' + StartTime + '&EndTime=' + EndTime + '&Code=' + Code + '&Name=' + encodeURI(encodeURI(Name)) + '&IDCard=' + IDCard + '&PStruct=' + encodeURI(encodeURI(PStruct)),
                    width: "1000px",
                    height: "625px",
                    btn: null,
                });
                $(".ui-filter-text").trigger("click");
            } else {
                dialogMsg('未选择查询类型！', 0);
                return false;
            }
                   
        }
    </script>
</head>
<body style="overflow: hidden;">
    @*<div id="ajax-loader" style="cursor: progress; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: #fff; z-index: 10000; overflow: hidden;">
        <img src="~/Content/Images/ajax-loader.gif" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto;" />
    </div>*@
    <div id="container">
        <div id="side">
            @*<img id="icon-vension" src="~/Content/Images/icon_v_b_e.png" alt="企业版">*@
            <ul id="nav"></ul>
        </div>
        <div id="main">
            <div id="main-hd">
                <div id="main-hd-title">
                    <a>@LeSoft.Application.Code.SystemInfo.CurrentSystemName</a>
                </div>
                <div style="float:left;">
                    <div class="ui-filter">
                        <div class="ui-filter-text" style=" border: 0;background: none;">
                            <a>
                                <span><i class="fa fa-search"></i></span>
                                快速搜索
                            </a>
                        </div>
                        <div class="ui-filter-list" style="width: 350px; top: 60px;">
                            <table class="form" id="filter-form">
                                <tr>
                                    <th class="formTitle">查询日期：</th>
                                    <td class="formValue">
                                        <div style="float: left; width: 45%;">
                                            <input id="StartTime" readonly type="text" value="@DateTime.Now.AddDays(-DateTime.Now.Day+1).ToString("yyyy-MM-dd")" class="form-control input-wdatepicker" onfocus="WdatePicker()">
                                        </div>
                                        <div style="float: left; width: 10%; text-align: center;">至</div>
                                        <div style="float: left; width: 45%;">
                                            <input id="EndTime" readonly type="text" value="@DateTime.Now.AddDays(-DateTime.Now.Day).AddMonths(1).ToString("yyyy-MM-dd")" class="form-control input-wdatepicker" onfocus="WdatePicker()">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="formTitle">查询类别：</td>
                                    <td class="formValue">
                                        <div id="Type" type="selectTree" class="ui-select">

                                        </div>
                                    </td>
                                </tr>                              
                                <tr>
                                    <td class="formTitle">单号：</td>
                                    <td class="formValue">
                                        <input id="Code" maxlength="20" type="text" class="form-control">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="formTitle">身份证号：</td>
                                    <td class="formValue">
                                        <input id="IDCard" maxlength="20" type="text" class="form-control">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="formTitle">姓名：</td>
                                    <td class="formValue">
                                        <input id="Name" maxlength="20" type="text" class="form-control">
                                    </td>
                                </tr> 
                                <tr>
                                    <td class="formTitle">租赁房产：</td>
                                    <td class="formValue">
                                        <input id="PStruct" maxlength="20" type="text" class="form-control">
                                    </td>
                                </tr>
                            </table>
                            <div class="ui-filter-list-bottom">
                                <a id="btn_Reset" class="btn btn-default" onclick="Reset()">&nbsp;重&nbsp;&nbsp;置</a>
                                <a id="btn_Search" class="btn btn-primary" onclick="SearchEvent()">&nbsp;查&nbsp;&nbsp;询</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="float: right">
                    <ul id="topnav">
                        <li class="list" id="IndexDesktop">
                            <a>
                                <span><i class="fa fa-home"></i></span>
                                系统首页
                            </a>
                        </li>                      
                        <li class="list" id="UserSetting">
                            <a>
                                <span><i class="fa fa-user"></i></span>
                                个人中心
                            </a>
                        </li>
                        @*<li class="list">
                            <a>
                                <span><i class="fa fa-bell"></i></span>
                                消息通知
                            </a>
                        </li>*@
                        <li class="list" onclick="IndexOut()">
                            <a>
                                <span><i class="fa fa-power-off"></i></span>
                                安全退出
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
            <div id="main-bd">
                <div id="tab_list_add">
                </div>
                <div class="contextmenu">
                    <ul>
                        <li onclick="$.removeTab('reloadCurrent')">刷新当前</li>
                        <li onclick="$.removeTab('closeCurrent')">关闭当前</li>
                        <li onclick="$.removeTab('closeAll')">全部关闭</li>
                        <li onclick="$.removeTab('closeOther')">除此之外全部关闭</li>
                        <div class='m-split'></div>
                        <li>退出</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!--载进度条start-->
    <div id="loading_background" class="loading_background" style="display: none;"></div>
    <div id="loading_manage">
        正在为您加载…
    </div>
    <!--载进度条end-->
    <!--聊天窗口start-->
    <a href="#" class="message-prompt" title="消息提醒"><i id="icon_message" class="fa fa-commenting"></i></a>
    <div class="message-wrap">
        <div class="message-content">
            <div class="message-header">
                企业内部通讯
                <div class="message-close">
                    <a href="javascript:;">×</a>
                </div>
            </div>
            <div class="message-body">
                <div class="message-body-search">
                    <input type="text" class="search-text" placeholder="搜索：同事名称、讨论组名称">
                    <i class="fa fa-search"></i>
                </div>
                <div class="message-body-container">
                    <div class="message-nav" style="display: block;">
                        <ul>
                            <li id="nav-contact-tab" class="active">
                                <a title="联系人"><i class="fa fa-user"></i></a>
                            </li>
                            <li id="nav-group-tab">
                                <a title="讨论组"><i class="fa fa-users" style="font-size: 20px;"></i></a>
                            </li>
                            <li id="nav-last-tab">
                                <a title="最近回话"><i class="fa fa-comment"></i><span class="message-count">2</span></a>
                            </li>
                        </ul>
                    </div>
                    <div class="message-group" style="height: 335px; overflow: auto; overflow-x: hidden;">
                        <ul id="message-contact-list"></ul>
                        <ul id="message-group-list" class="message-chatlist" style="display: none;">
                            @*<div style="color: red;">目前不支持</div>*@
                        </ul>
                        <ul id="message-last-list" class="message-chatlist" style="display: none;"></ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="message-window">
        <div class="message-window-header">
            <span class="text">与 XXX 聊天中</span>
            <div class="close">
                <a href="javascript:;">×</a>
            </div>
        </div>
        <div class="message-window-chat" style="overflow: auto; height: 260px;">
            <div class="message-window-content" style="padding: 15px; height: auto; overflow: hidden;">
            </div>
        </div>
        <div class="message-window-tool">
            <a class="message-window-tool-seechatlog"><i class="fa fa-clock-o"></i>沟通记录</a>
        </div>
        <div class="message-window-send">
            <textarea autofocus placeholder="按回车发送消息,shift+回车换行"></textarea>
        </div>
    </div>
    <!--聊天窗口end-->

    <style>
        .ui-filter-list .form-control {
            /* display: block; */
            width: 100%;
            height: 28px;
            /* padding: 6px 12px; */
            line-height: 1.42857143;
            /* color: #555; */
            /* background-color: #fff; */
            /* background-image: none; */
            border: 1px solid #ccc;
            border-radius: 4px;
            -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
            box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
            -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
            -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
            transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
        }

        .ui-filter-list .btn {
            -moz-user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            -khtml-user-select: none;
            user-select: none;
            padding: 6px 12px;
            line-height: 1.42857143;
            text-align: center;
            white-space: nowrap;
            vertical-align: middle;
            -ms-touch-action: manipulation;
            touch-action: manipulation;
            cursor: pointer;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            background-image: none;
            border: 1px solid transparent;
            border-radius: 4px;
        }

        .ui-filter-list .btn-primary {
            color: #fff;
            background-color: #337ab7;
            border-color: #2e6da4;
        }

        .ui-filter-list .btn-default {
            color: #333;
            background-color: #fff;
            border-color: #ccc;
        }

        .ui-filter-text a {
            cursor: pointer;
            display: inline;
            float: left;
            width: 50px;
            height: 46px;
            text-align: center;
            padding: 5px 7px 0px;
            text-decoration: none;
            text-shadow: 0px -1px rgba(0,0,0,0.2);
            -webkit-border-radius: 3px;
            border-radius: 3px;
            overflow: hidden;
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            border-radius: 5px;
        }

            .ui-filter-text a span {
                display: block;
                margin: 0px auto 0px;
                width: 25px;
                height: 26px;
                overflow: hidden;
            }

                .ui-filter-text a span i {
                    color: #666666;
                    font-size: 22px;
                }
    </style>
</body>
</html>
